package org.twnmayberry.bo;

public enum Sex {
  MALE,FEMALE,UNKNOWN;
  
  public static Sex translate(String arg) {
	  if(arg.equalsIgnoreCase("M") || arg.equalsIgnoreCase("MALE")) {
		  return Sex.MALE;
	  } else if(arg.equalsIgnoreCase("F") || arg.equalsIgnoreCase("FEMALE")) {
		  return Sex.FEMALE;
	  } else {
		  return Sex.UNKNOWN;
	  }
  }
}
